import request from '@/utils/request'
//查询
export const userplantingoutputinfoGetService = ({ id, tar }) => {
  return request.get('adminplantingoutput/search', {
    params: {
      id,
      tar
    }
  })
}
//添加
export const userplantingoutputinfoAddService = ({
  id,
  vegetableid,
  output,
  salesamount,
  saledate,
  remarks,
  name,
  userid,
  tar
}) => {
  return request.post('adminplantingoutput/add', {
    id,
    vegetableid,
    output,
    salesamount,
    saledate,
    remarks,
    name,
    userid,
    tar
  })
}
//更新
export const userplantingoutputinfoUpService = ({
  id,
  vegetableid,
  output,
  salesamount,
  saledate,
  remarks,
  name,
  userid,
  tar
}) => {
  return request.put('adminplantingoutput/up', {
    id,
    vegetableid,
    output,
    salesamount,
    saledate,
    remarks,
    name,
    userid,
    tar
  })
}
// //删除
// export const plantingoutputinfoDlService = (id, vegetableid) => {
//   return request.delete('adminplantingoutput/delete', {
//     params: { id, vegetableid }
//   })
// }
